package com.swt.draw;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;

@EnableCaching
@MapperScan(basePackages = "com.swt.draw.dao")
@SpringBootApplication
//public class DrawApplication extends SpringBootServletInitializer {
public class DrawApplication {

   /* @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(DrawApplication.class);
    }*/

    public static void main(String[] args) {
        SpringApplication.run(DrawApplication.class, args);
    }

}
